/**
 * 合同管理路由
 */
export default [
  {
    path: '/contract',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'list',
        name: 'ContractList',
        component: () => import('@/views/contract/ContractList.vue'),
        meta: { title: '合同列表' }
      },
      {
        path: 'create',
        name: 'ContractCreate',
        component: () => import('@/views/contract/ContractForm.vue'),
        meta: { title: '新建合同' }
      },
      {
        path: 'edit/:id',
        name: 'ContractEdit',
        component: () => import('@/views/contract/ContractForm.vue'),
        meta: { title: '编辑合同' }
      },
      {
        path: 'detail/:id',
        name: 'ContractDetail',
        component: () => import('@/views/contract/ContractDetail.vue'),
        meta: { title: '合同详情' }
      },
      {
        path: 'approval',
        name: 'ContractApproval',
        component: () => import('@/views/contract/ContractApproval.vue'),
        meta: { title: '合同审批' }
      },
      {
        path: 'template',
        name: 'ContractTemplate',
        component: () => import('@/views/contract/ContractTemplate.vue'),
        meta: { title: '合同模板' }
      },
      {
        path: 'statistics',
        name: 'ContractStatistics',
        component: () => import('@/views/contract/ContractStatistics.vue'),
        meta: { title: '合同统计' }
      },
      {
        path: 'reminder',
        name: 'ContractReminder',
        component: () => import('@/views/contract/ContractReminder.vue'),
        meta: { title: '合同提醒' }
      }
    ]
  }
]

